
// URL模块提供用于网址处理和解析的实用工具。
let  obj = new URL("https://search.jd.com:8080/Search?keyword=帽子&enc=utf-8&suggest=1.his.0.0&pvid=434518e16e7d48d688b768503d542d9a")


console.log(obj);
console.log(obj.protocol);
console.log(obj.hostname);
console.log(obj.host);

let paraObj = obj.searchParams;//Map  (set  get)
console.log(paraObj.get("keyword"));
// console.log(paraObj.pvid);
